Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌟 Featured notebooks & new main menu #2048

Merged
merged 66 commits into from
Jun 16, 2022
Merged

🌟 Featured notebooks & new main menu #2048

merged 66 commits into from
Jun 16, 2022

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Apr 21, 2022

I have been working on a new main menu for Pluto, with a focus on a new featured notebook system! Here is a screenshot:

Schermafbeelding 2022-04-21 om 23 00 52


Featured Notebooks

Right now we have a very small set of sample notebooks, and they are not updated frequently. We should change this! My idea is: let's make Pluto an awesome platform for the Pluto and Julia community to share their work, to make it more attractive for people to contribute.

The major changes compared to our old sample system are:

  • Features are listed directly in the main menu. Everyone who uses Pluto will see it!

  • (TODO) An exact copy of the "Featured" UI will also be available on plutojl.org, with execution powered by binder, and PlutoSliderServer coming soonish

  • You can read Features directly without running them (we load a precomputed statefile from our servers)

  • Features are developed and generated on a separate repository: https://github.com/JuliaPluto/featured. This repository is added as a "source" to a local file: featured_sources.json. In the future, you could add more sources here, like a source specific to astrophysics notebooks, or Fons's Big Mess of JavaScript Notebooks.json.

  • Notebooks can now have a:

    • Preview image
    • Title & description
    • Author name & image
  • We can group notebooks together in collections about a single topic

  • We can give special labels to notebooks, "New!":

image

Image from https://cataas.com/

image

Offline mode

When unable to load the notebook collection from the web, we show our classic set of notebooks:

Schermafbeelding 2022-04-21 om 22 44 45

These don't have a statefile, and clicking them will load them in the old way. This means that we need to leave all of the old sample-related code, and the old sample notebooks. Sad, but on the bright side, removing the sample notebooks would probably mean that our project gets classified by GitHub as "JavaScript" instead of "Julia" 🙃

TODO

@github-actions
Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="featured-notebooks")
julia> using Pluto

@fonsp
Copy link
Owner Author

fonsp commented Jun 16, 2022

Maintainer instructions are here: https://github.com/JuliaPluto/pluto-developer-instructions/blob/main/How%20to%20update%20the%20featured%20notebooks.md

@fonsp
Copy link
Owner Author

fonsp commented Jun 16, 2022

Merging! Happy summer everyone 🌟

@fonsp fonsp merged commit 9787ebb into main Jun 16, 2022
@fonsp fonsp deleted the featured-notebooks branch June 16, 2022 15:39
@fonsp fonsp added the frontend Concerning the HTML editor label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Concerning the HTML editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant